home comics writing pictures archive about

letter.java

Language: Java
Last Modified: 2020-06-27 1:58:33 PM UTC
File Size: 417 bytes
http://www.penguinstew.ca/example/hangman/letter.java
publicclassletter{
privatecharvalue;
privatebooleanprint;
publiclettercharname{
thisvalue=name;
ifname==||name=={
thisprint=true;
}else{
thisprint=false;
}
}
publicchargetValue{
returnthisvalue;
}
publicbooleangetPrint{
returnthisprint;
}
publicvoidsetPrintbooleanset{
thisprint=set;
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27